﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataDesign.MPP.ServerManager.ObjectClass
{
    public class MPPTask
    {
        public string TaskName { get; set; }
        public Nullable<Guid> TaskGuid { get; set; }
        public Nullable<DateTime> StartDate { get; set; }
        public Nullable<DateTime> FinishDate { get; set; }

        public int Duration { get; set; }        // Unit: 1/10 minute
        public int ActualDuration { get; set; }
        public int Progress { get; set; }
        public string PriorityLevel { get; set; }

        public string DurationHourString 
        { 
            get
            {
                return (Duration / 600).ToString() + " hrs";                
            } 
        }

        public MPPTask() { }
    }
}
